home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2002 January / january_2002.iso / Piposh Special / Piposh / QUES.DXR / 00097.ls < prev    next >
Encoding:
Text File  |  2004-12-06  |  4.9 KB  |  186 lines

  1. on mouseUp
  2.   global whosnow, effectspath, soundspath, hyt
  3.   hyt = the clickOn
  4.   if whosnow <> 0 then
  5.     case the clickOn of
  6.       2:
  7.         y = "opendoor.aif"
  8.       3:
  9.         y = "mov.aif"
  10.       4:
  11.         y = "mov.aif"
  12.       5:
  13.         y = "thud.aif"
  14.       6:
  15.         y = "mov.aif"
  16.       7:
  17.         y = "slip.aif"
  18.       8:
  19.         y = "slip.aif"
  20.       9:
  21.         y = "fire.aif"
  22.       10:
  23.         y = "fire.aif"
  24.       11:
  25.         y = "switch.aif"
  26.       12:
  27.         y = "sqik.aif"
  28.       13:
  29.         y = "sqik.aif"
  30.       14:
  31.         y = "sqik.aif"
  32.       15:
  33.         y = "wosh.aif"
  34.       16:
  35.         y = "bottle.aif"
  36.       17:
  37.         y = "steel.aif"
  38.       18:
  39.         y = "bottle.aif"
  40.       19:
  41.         y = "thud.aif"
  42.       20:
  43.         y = "thud.aif"
  44.       21:
  45.         y = "sqik.aif"
  46.       22:
  47.         y = "piano.aif"
  48.       23:
  49.         y = "wosh.aif"
  50.       24:
  51.         y = "wosh.aif"
  52.       25:
  53.         y = "bzzz.aif"
  54.     end case
  55.     y2 = 0
  56.     case whosnow of
  57.       "sue":
  58.         y2 = 5
  59.       "krp":
  60.         y2 = 3
  61.       "doc":
  62.         y2 = "25,21"
  63.       "psy":
  64.         y2 = "11"
  65.       "hat":
  66.         y2 = "15"
  67.       "poz":
  68.         y2 = "13,14"
  69.     end case
  70.     sound playFile 2, effectspath & y
  71.     u = random(4)
  72.     if u = 1 then
  73.       if whosnow = "psy" then
  74.         yyy = 313 + random(5)
  75.         fff = "psy"
  76.         sound playFile 1, soundspath & yyy
  77.         play frame fff & "spk"
  78.       else
  79.         if whosnow = "doc" then
  80.           yyy = random(5)
  81.           if yyy = 1 then
  82.             sound playFile 1, soundspath & 324
  83.             play frame "ishspk"
  84.             sound playFile 1, soundspath & 325
  85.             play frame "docspk"
  86.           else
  87.             if yyy = 2 then
  88.               sound playFile 1, soundspath & 326
  89.               play frame "ishspk"
  90.               sound playFile 1, soundspath & 327
  91.               play frame "docspk"
  92.             else
  93.               if yyy = 3 then
  94.                 sound playFile 1, soundspath & 328
  95.                 play frame "ishspk"
  96.                 sound playFile 1, soundspath & 329
  97.                 play frame "docspk"
  98.               else
  99.                 if yyy = 4 then
  100.                   sound playFile 1, soundspath & 330
  101.                   play frame "ishspk"
  102.                   sound playFile 1, soundspath & 331
  103.                   play frame "docspk"
  104.                 else
  105.                   sound playFile 1, soundspath & 332
  106.                   play frame "ishspk"
  107.                   sound playFile 1, soundspath & 333
  108.                   play frame "docspk"
  109.                   sound playFile 1, soundspath & 334
  110.                   play frame "ishspk"
  111.                   sound playFile 1, soundspath & 335
  112.                   play frame "docspk"
  113.                   sound playFile 1, soundspath & 336
  114.                   play frame "docspk"
  115.                 end if
  116.               end if
  117.             end if
  118.           end if
  119.         else
  120.           if whosnow = "hat" then
  121.             yyy = 342 + random(5)
  122.             fff = "hat"
  123.             sound playFile 1, soundspath & yyy
  124.             play frame fff & "spk"
  125.           else
  126.             if whosnow = "doc" then
  127.               yyy = random(5)
  128.               if yyy = 1 then
  129.                 sound playFile 1, soundspath & 351
  130.                 play frame "piespk"
  131.                 sound playFile 1, soundspath & 352
  132.                 play frame "pozspk"
  133.               else
  134.                 if yyy = 2 then
  135.                   sound playFile 1, soundspath & 353
  136.                   play frame "pozspk"
  137.                   sound playFile 1, soundspath & 354
  138.                   play frame "piespk"
  139.                 else
  140.                   if yyy = 3 then
  141.                     sound playFile 1, soundspath & 355
  142.                     play frame "pozspk"
  143.                     sound playFile 1, soundspath & 356
  144.                     play frame "piespk"
  145.                   else
  146.                     if yyy = 4 then
  147.                       sound playFile 1, soundspath & 357
  148.                       play frame "pozspk"
  149.                       sound playFile 1, soundspath & 358
  150.                       play frame "piespk"
  151.                     end if
  152.                   end if
  153.                 end if
  154.               end if
  155.             else
  156.               if whosnow = "sue" then
  157.                 yyy = 364 + random(5)
  158.                 fff = "sue"
  159.                 sound playFile 1, soundspath & yyy
  160.                 play frame fff & "spk"
  161.               else
  162.                 if whosnow = "krp" then
  163.                   yyy = 377 + random(5)
  164.                   fff = "krup"
  165.                   sound playFile 1, soundspath & yyy
  166.                   play frame fff & "spk"
  167.                 end if
  168.               end if
  169.             end if
  170.           end if
  171.         end if
  172.       end if
  173.     end if
  174.     if whosnow = "krp" then
  175.       if (the clickOn + 10) > 25 then
  176.         g = the clickOn + 10 - 25
  177.       else
  178.         g = the clickOn + 10
  179.       end if
  180.       play frame "do" & 1 + random(24)
  181.     else
  182.       play frame "do" & hyt
  183.     end if
  184.   end if
  185. end
  186.